package excollection;

import java.util.ArrayList;
import java.util.TreeSet;
import java.util.Vector;

/**
 * @author: knowno
 * @create: 2025-09-15 13:49
 * @Version 1.0
 **/
public class TestVectorAutoCapi {
    public static void main(String[] args) {

        //创建一个Vector集合
        Vector vector = new Vector();
        //使用循环添加元素 =>循环次数要大于10,否则看不到扩容操作
        for (int i = 0; i < 30; i++) {
            vector.add(i);
        }
        System.out.println(vector);



    }
}
